@extends('layouts.home')
@section('head_info')
<title>{{$cate->cate_name}}-{{Config::get('web.web_title')}}</title>
<meta name="keywords" content="{{$cate->cate_keywords}}" />
<meta name="description" content="{{$cate->cate_description}}" />
@stop
@section('style')
<link href="{{asset('resources/assets/home/css/style.css')}}" rel="stylesheet">
@stop
@section('content')
<article class="blogs">
<h1 class="t_nav"><span>{{$cate->cate_title}}</span><a href="{{url('/')}}" class="n1">网站首页</a><a href="{{url('cate').'/'.$cate->cate_id}}" class="n2">{{$cate->cate_name}}</a></h1>
<div class="newblog left">
  @foreach($sub as $value)
   <h2>{{$value->art_title}}</h2>
    <figure><img src="{{url($value->art_thumb)}}"></figure>
    <ul class="nlist">
      <p>{{$value->art_description}}</p>
      <a title="{{$value->art_title}}" href="{{url('art').'/'.$value->art_id}}" target="_blank" class="readmore">阅读全文>></a>
    </ul>
    <p class="dateview"><span>　发布时间：{{date('Y-m-d',$value->art_time)}}</span><span>作者：{{$value->art_editor}}</span><span>分类：[<a href="/news/life/">{{$value->cate_id}}</a>]</span></p>
    <div class="line"></div>
    @endforeach
</div>
@stop
@if($subnavs->all())
@section('right_top')
    <div class="rnav">
      <ul>
      @foreach($subnavs as $key=>$value)
       <li class="rnav{{$key+1}}"><a href="{{url('cate').'/'.$value->cate_id}}" target="_blank">{{$value->cate_name}}</a></li>
       @endforeach
     </ul>      
    </div>
@stop
@endif
